import request from '@/utils/request'

// 新增 客户资产
export const submitCustomer_rong = (url,form)=>
	request({
		url ,
		method:'post',
		data:JSON.stringify(
			form
		) 
	})

// 获取当前用户创建的客户资产列表
export const rong_customer_List = (search)=>
	request({
		url : '/op/client_assets/get_my_client_assets_list',
		method:'get',
		params:{
			pageNo:search.pageNo,
			pageSize:search.pageSize,
		}
	})
// 获取当前用户创建的客户需求列表	
export const purchase_from_customer = (search)=>
	request({
		url : '/op/client_demand/get_my_client_demand_list',
		method:'get',
		params:{
			pageNo:search.pageNo,
			pageSize:search.pageSize,
		}
	})
	
	// 获取指定的客户资产
export const getRongDetail = (code)=>
	request({
		url : '/op/client_assets/get_client_assets',
		method:'get',
		params:{
			code
		}
	})
//新增 客户购买	
export const submitCustomer_purchase = (url,form)=>
	request({
		url ,
		method:'post',
		data:JSON.stringify(
			form
		) 
	})
	// 获取指定的客户需求
export const getPurchaseDetail = (code)=>
	request({
		url : '/op/client_demand/get_client_demand',
		method:'get',
		params:{
			code
		}
	})